﻿

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;


public class BLL_tbl_siconide_crushing
{
    public BLL_tbl_siconide_crushing()
    {

    }

    public List<tbl_siconide_crushing> select(int ID)
    {
        DAL_tbl_siconide_crushing dal = new DAL_tbl_siconide_crushing();
        return dal.select(ID);
    }

    public List<tbl_siconide_crushing> selectAll()
    {
        DAL_tbl_siconide_crushing dal = new DAL_tbl_siconide_crushing();
        return dal.selectAll();
    }

    public DataTable selectAllForGrid()
    {
        DAL_tbl_siconide_crushing dal = new DAL_tbl_siconide_crushing();
        return dal.selectAllForGrid();
    }

    public bool insert(tbl_siconide_crushing tbl)
    {
        DAL_tbl_siconide_crushing dal = new DAL_tbl_siconide_crushing();
        int i = 0;
        i = dal.insert(
            tbl.Charge_Number
, tbl.Quantity
, tbl.Flowbin_Number
, tbl.Crushing_Date
, tbl.Remark
, tbl.CREATED_BY
, tbl.CREATED_DATE
        );

        return Convert.ToBoolean(i);
    }


    public bool update(tbl_siconide_crushing tbl)
    {
        DAL_tbl_siconide_crushing dal = new DAL_tbl_siconide_crushing();
        int i = 0;
        i = dal.update(
            tbl.ID
, tbl.Charge_Number
, tbl.Quantity
, tbl.Flowbin_Number
, tbl.Crushing_Date
, tbl.Remark
, tbl.UPDATED_BY
, tbl.UPDATED_DATE
            );

        return Convert.ToBoolean(i);
    }


    public bool delete(tbl_siconide_crushing tbl)
    {
        DAL_tbl_siconide_crushing dal = new DAL_tbl_siconide_crushing();
        int i = 0;
        i = dal.delete(
                tbl.ID
        );

        return Convert.ToBoolean(i);
    }


}

